<?php
declare(strict_types=1);
namespace SixShop\Lakala\Enum;

enum ProfitShareOrderStatusEnum:string
{
    case PENDING = 'PENDING';
    case PROCESSING = 'PROCESSING';
    case ACCEPTED = 'ACCEPTED';
    case SUCCESS = 'SUCCESS';
    case FAIL = 'FAIL';
    public function toString(): string
    {
        return match ($this) {
            self::PENDING => '待处理',
            self::PROCESSING => '处理中',
            self::ACCEPTED => '已受理',
            self::SUCCESS => '成功',
            self::FAIL => '失败',
        };
    }
}
